package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.CouponClassExpireStrategy;
import com.ecoolex.chinadutyfree.retailer.entity.CouponClassExpireStrategyExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface CouponClassExpireStrategyMapper {
    long countByExample(CouponClassExpireStrategyExample example);

    int deleteByExample(CouponClassExpireStrategyExample example);

    int deleteByPrimaryKey(Integer couponClassId);

    int insert(CouponClassExpireStrategy record);

    int insertSelective(@Param("record") CouponClassExpireStrategy record, @Param("selective") CouponClassExpireStrategy.Column ... selective);

    CouponClassExpireStrategy selectOneByExample(CouponClassExpireStrategyExample example);

    List<CouponClassExpireStrategy> selectByExample(CouponClassExpireStrategyExample example);

    CouponClassExpireStrategy selectByPrimaryKey(Integer couponClassId);

    CouponClassExpireStrategy selectByPrimaryKeyWithLogicalDelete(@Param("couponClassId") Integer couponClassId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") CouponClassExpireStrategy record, @Param("example") CouponClassExpireStrategyExample example, @Param("selective") CouponClassExpireStrategy.Column ... selective);

    int updateByExample(@Param("record") CouponClassExpireStrategy record, @Param("example") CouponClassExpireStrategyExample example);

    int updateByPrimaryKeySelective(@Param("record") CouponClassExpireStrategy record, @Param("selective") CouponClassExpireStrategy.Column ... selective);

    int updateByPrimaryKey(CouponClassExpireStrategy record);

    int batchInsert(@Param("list") List<CouponClassExpireStrategy> list);

    int batchInsertSelective(@Param("list") List<CouponClassExpireStrategy> list, @Param("selective") CouponClassExpireStrategy.Column ... selective);

    int logicalDeleteByExample(@Param("example") CouponClassExpireStrategyExample example);

    int logicalDeleteByPrimaryKey(Integer couponClassId);
}